home *** CD-ROM | disk | FTP | other *** search
- class classes.fx.BGDeco
- {
- var id;
- var showing;
- var speed;
- var clip;
- var yMov;
- var h;
- var Name = "bgDeco";
- function BGDeco()
- {
- }
- function showBG(pid, pspeed)
- {
- this.id = pid;
- if(!this.showing)
- {
- this.speed = pspeed;
- this.clip = _root.attachMovie("bgDeco","bgDecoClip",1);
- this.clip.cacheAsBitmap = true;
- this.clip._y = 603;
- this.yMov = -1 * this.speed;
- this.clip.gotoAndStop(this.id);
- this.h = this.clip._height;
- this.showing = true;
- }
- }
- function main()
- {
- if(this.showing)
- {
- if(this.clip._y + this.h < -5)
- {
- this.clip.removeMovieClip();
- this.showing = false;
- if(this.id == "3E")
- {
- this.showBG("3E",0.5);
- }
- }
- this.clip._y += this.yMov;
- }
- }
- }
-